package com.app.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 消费多送分享记录
 * </p>
 *
 * @author yoominic
 * @since 2024-07-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_consumption_voucher_share")
public class ConsumptionVoucherShare implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单表ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单号
     */
    private String orderId;

    /**
     * 分成券表tb_consumption_voucher 外键
     */
    private Integer voucherId;

    /**
     * 券值
     */
    private BigDecimal voucher;

    /**
     * 核验码
     */
    private String verificationCode;

    /**
     * 被分享人id
     */
    private Integer sharedUserid;

    /**
     * 生成时间
     */
    private Timestamp createTime;


}
